var mongoose = require('mongoose')
var Schema = mongoose.Schema
mongoose.connect('mongodb://localhost/BBETTER')
var bookSchema = new Schema({
    name: {
        type: String,
        required: true
    },
    cluster: {
        type: String,
        required: true
    },
    denominator: {
        type: Number,
        required: true
    },
    numerator: {
        type: Number,
        required: false
    }
})

module.exports = mongoose.model('Book', bookSchema)